package com.dic.urms.user.model;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Data;

import com.dic.common.base.model.BaseModel;
//import com.dic.urms.orgFrame.module.OrgFrame;
//import com.dic.urms.role.module.Role;


@Entity
@Table(name="UM_USER")
//@Cache(usage=CacheConcurrencyStrategy.READ_WRITE,region="urms_cache")
@Data
public class User extends BaseModel {
	
	private static final long serialVersionUID = -2328336077409542121L;

	@Column(name = "LOGIN_NAME", length=128)
	private String loginName;//登录名
	@Column(name = "PASSWORD_", length=128)
	private String password;//密码
	@Column(name = "STATE_")
	private Integer state;//状态
	@Column(name = "USER_NAME",length=16)
	private String userName;//真实姓名
	@Column(name = "SEX_")
	private Integer sex;//性别
	@Column(name = "AGE_")
	private Integer age;//年龄
	@Column(name = "NATION_")
	private Integer nation;//民族
	@Column(name = "IDCARD")
	private String idCard;//身份证号
	@Column(name = "JOB_")
	private String job;//职务
    @Column(name = "BIRTHDAY_")
	private Date birthday;//生日
	@Column(name = "EDUCATION_")
	private Integer education;//学历
	@Column(name = "MOBILE_PHONE",length=20)
	private String mobilePhone;//手提电话
	@Column(name = "TELEPHONE_",length=20)
	private String telephone;//固定电话
	@Column(name = "E_MAIL",length=128)
	private String email;//Email
	@Column(name = "ADDRESS_",length=256)
	private String address;//地址
	@Column(name = "MEMO_",length=2048)
	private String memo;//备注
	@Column(name = "type_")
	private Integer type;//用户类型 1：超级管理员 2：子系统管理员 3：各子后台系统用户 4：系统前台用户（有需要时使用）

}
